- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
clippy fixes and code simplification #148211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt | 
| rustbot has assigned @petrochenkov. Use  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for the two cases mentioned below.
| * - because `(Option<Vec<i32>, bool)` needs `Option<Vec<i32>>: Copy` because `impl <A: Copy, B: Copy> Copy for (A, B)` | ||
| * - want `Vec<i32>: Copy` | ||
| * - because `Option<Vec<i32>>: Copy` needs `Vec<i32>: Copy` because `impl <T: Copy> Copy for Option<T>` | ||
| * - because `(Option<Vec<i32>, bool)` needs `Option<Vec<i32>>: Copy` because `impl <A: Copy, B: Copy> Copy for (A, B)` | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A single space indent here seems worse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very well, I will revert such changes.
| /// - in_ty: `(Option<Vec<T>, bool)` | ||
| /// - expr: `(Some(vec![1, 2, 3]), false)` | ||
| /// - param: `T` | ||
| /// - in_ty: `(Option<Vec<T>, bool)` | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
| @bors delegate=hkBst | 
| ✌️ @hkBst, you can now approve this pull request! If @nnethercote told you to " | 
No description provided.